##################################################################
# File : /lua/maui/columnedlist.lua
# Description : Columned List control
# Author : GPG
##################################################################

local Control = import('control.lua').Control
local Bitmap = import('bitmap.lua').Bitmap
local LayoutHelpers = import('layouthelpers.lua')

ColumnedList = Class(moho.group_methods, Control) {

    __init = function(self, parent, debugname)
        InternalCreateGroup(self, parent)
        if debugname then
            self:SetName(debugname)
        end
    end,
    
    SetSolidColor = function(self,color)
        self._bg = Bitmap(self)
        self._bg:SetSolidColor(color)
        self._bg.Depth:Set( self.Depth )
        self._bg:DisableHitTest()
        LayoutHelpers.FillParent(self._bg, self)
    end,
}

